﻿<UserControl x:Class="BombPart.Bomb"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="134" d:DesignWidth="134">
    <UserControl.Resources>
        <Storyboard x:Key="myHorizontalOffset" AutoReverse="False">
            <RectAnimationUsingKeyFrames Storyboard.TargetName="myExplosion" Storyboard.TargetProperty="Viewbox">
                <DiscreteRectKeyFrame KeyTime="0:0:0.0" Value="0,0,134,134"/>
                <DiscreteRectKeyFrame KeyTime="0:0:0.1" Value="134,0,134,134"/>
                <DiscreteRectKeyFrame KeyTime="0:0:0.2" Value="268,0,134,134"/>
                <DiscreteRectKeyFrame KeyTime="0:0:0.3" Value="402,0,134,134"/>
                <DiscreteRectKeyFrame KeyTime="0:0:0.4" Value="536,0,134,134"/>
                <DiscreteRectKeyFrame KeyTime="0:0:0.5" Value="670,0,134,134"/>
                <DiscreteRectKeyFrame KeyTime="0:0:0.6" Value="804,0,134,134"/>
                <DiscreteRectKeyFrame KeyTime="0:0:0.7" Value="938,0,134,134"/>
                <DiscreteRectKeyFrame KeyTime="0:0:0.8" Value="1072,0,134,134"/>
                <DiscreteRectKeyFrame KeyTime="0:0:0.9" Value="1206,0,134,134"/>
                <DiscreteRectKeyFrame KeyTime="0:0:0.10" Value="1340,0,134,134"/>
                <DiscreteRectKeyFrame KeyTime="0:0:1.1" Value="1474,0,134,134"/>
                <DiscreteRectKeyFrame KeyTime="0:0:1.2" Value="1474,0,134,134"/>
            </RectAnimationUsingKeyFrames>
        </Storyboard>
        <Storyboard x:Key="myHorizontalOffset1" AutoReverse="False">
            <RectAnimationUsingKeyFrames Storyboard.TargetName="myExplosion" Storyboard.TargetProperty="Viewbox">
                <DiscreteRectKeyFrame KeyTime="0:0:0.0" Value="0,0,134,134"/>
                <DiscreteRectKeyFrame KeyTime="0:0:0.1" Value="134,0,134,134"/>
                <DiscreteRectKeyFrame KeyTime="0:0:0.2" Value="0,0,134,134"/>
                <DiscreteRectKeyFrame KeyTime="0:0:0.3" Value="134,0,134,134"/>
                <DiscreteRectKeyFrame KeyTime="0:0:0.4" Value="0,0,134,134"/>
                <DiscreteRectKeyFrame KeyTime="0:0:0.5" Value="134,0,134,134"/>
                <DiscreteRectKeyFrame KeyTime="0:0:0.6" Value="0,0,134,134"/>
                <DiscreteRectKeyFrame KeyTime="0:0:0.7" Value="134,0,134,134"/>
                <DiscreteRectKeyFrame KeyTime="0:0:0.8" Value="1474,0,134,134"/>
                <DiscreteRectKeyFrame KeyTime="0:0:0.9" Value="134,0,134,134"/>
                <DiscreteRectKeyFrame KeyTime="0:0:1.0" Value="1474,0,134,134"/>
                <DiscreteRectKeyFrame KeyTime="0:0:1.1" Value="134,0,134,134"/>
                <DiscreteRectKeyFrame KeyTime="0:0:1.2" Value="268,0,134,134"/>
                <DiscreteRectKeyFrame KeyTime="0:0:1.3" Value="402,0,134,134"/>
                <DiscreteRectKeyFrame KeyTime="0:0:1.4" Value="536,0,134,134"/>
                <DiscreteRectKeyFrame KeyTime="0:0:1.5" Value="670,0,134,134"/>
                <DiscreteRectKeyFrame KeyTime="0:0:1.6" Value="804,0,134,134"/>
                <DiscreteRectKeyFrame KeyTime="0:0:1.7" Value="938,0,134,134"/>
                <DiscreteRectKeyFrame KeyTime="0:0:1.8" Value="1072,0,134,134"/>
                <DiscreteRectKeyFrame KeyTime="0:0:1.9" Value="1206,0,134,134"/>
                <DiscreteRectKeyFrame KeyTime="0:0:2.0" Value="1340,0,134,134"/>
                <DiscreteRectKeyFrame KeyTime="0:0:2.1" Value="1474,0,134,134"/>
                <DiscreteRectKeyFrame KeyTime="0:0:2.2" Value="1340,0,134,134"/>
                <DiscreteRectKeyFrame KeyTime="0:0:2.3" Value="1474,0,134,134"/>
            </RectAnimationUsingKeyFrames>
        </Storyboard>
    </UserControl.Resources>
    <Grid>
        <Rectangle Name="rectangle1" Height="134" Width="134" HorizontalAlignment="Left" Margin="0,0,0,0" VerticalAlignment="Top"   >
            <Rectangle.Fill>
                <ImageBrush x:Name="myExplosion" ImageSource="explosion.png" Viewbox="0,0,134,134"  Stretch="None"  ViewboxUnits="Absolute" AlignmentX="Center" AlignmentY="Center">
                </ImageBrush>
            </Rectangle.Fill>
        </Rectangle>
    </Grid>
</UserControl>
